package org.jeecg.modules.caiGgl.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.workflow.vo.MyApplyVO;
import org.jeecg.modules.workflow.vo.MyDoneVO;
import org.jeecg.modules.workflow.vo.MyTodoVO;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 采购管理
 * @Author: jeecg-boot
 * @Date:   2020-06-17
 * @Version: V1.0
 */
@Data
@TableName("hq_cggl")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hq_cggl对象", description="采购管理")
public class HqCggl implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private String sysOrgCode;
	/**类别*/
	@Excel(name = "类别", width = 15, dicCode = "caig_type")
	@Dict(dicCode = "caig_type")
    @ApiModelProperty(value = "类别")
    private String type;
	/**项目名称*/
	@Excel(name = "项目名称", width = 15)
    @ApiModelProperty(value = "项目名称")
    private String projectname;
	/**项目编号*/
	@Excel(name = "项目编号", width = 15)
    @ApiModelProperty(value = "项目编号")
    private String projectnu;
	/**预算科目*/
	@Excel(name = "预算科目", width = 15)
    @ApiModelProperty(value = "预算科目")
    private String yuskm;
	/**规格型号*/
	@Excel(name = "规格型号", width = 15)
    @ApiModelProperty(value = "规格型号")
    private String guigxh;
	/**计量单位*/
	@Excel(name = "计量单位", width = 15)
    @ApiModelProperty(value = "计量单位")
    private String jildw;
	/**采购数量*/
	@Excel(name = "采购数量", width = 15)
    @ApiModelProperty(value = "采购数量")
    private Integer caigsl;
	/**单价*/
	@Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private Double danj;
	/**预算金额*/
	@Excel(name = "预算金额", width = 15)
    @ApiModelProperty(value = "预算金额")
    private Double yusje;
	/**交货期限*/
	@Excel(name = "交货期限", width = 15)
    @ApiModelProperty(value = "交货期限")
    private String jaohqx;
	/**采购方式*/
	@Excel(name = "采购方式", width = 15, dicCode = "caig_fs")
	@Dict(dicCode = "caig_fs")
    @ApiModelProperty(value = "采购方式")
    private String caigfs;
	/**需求单位*/
	@Excel(name = "需求单位", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @ApiModelProperty(value = "需求单位")
    private String xuqdw;
	/**联系人*/
	@Excel(name = "联系人", width = 15)
    @ApiModelProperty(value = "联系人")
    private String lianxr;
	/**联系电话*/
	@Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String lianxdh;
	/**任务下达采购部门*/
	@Excel(name = "任务下达采购部门", width = 15, dictTable = "sys_depart", dicText = "depart_name",dicCode = "id")
    @ApiModelProperty(value = "任务下达采购部门")
    private String baozqd;

    private String processInstanceId;

    @Dict(dicCode = "auditStatus")
    private Integer status;

    private String taskId;

    @TableField(exist = false)
    private MyApplyVO myApplyVO;
    @TableField(exist = false)
    private MyTodoVO myTodoVO;
    @TableField(exist = false)
    private MyDoneVO myDoneVO;

    @TableField(exist = false)
    private Date endTime;
    @TableField(exist = false)
    private String auditStatus;
    @TableField(exist = false)

    @Dict(dicCode = "processStatus")
    private Integer processStatus;

    @TableField(exist = false)
    private String taskName;
    @TableField(exist = false)
    private String taskMsg;
    @TableField(exist = false)
    private String currtTaskId;

    /**附件*/
    @Excel(name = "附件", width = 15)
    @ApiModelProperty(value = "附件")
    private java.lang.String fuj;

    // 页面传入的工作流id，决定创建那个流程
    @TableField(exist = false)
    private String workFlowId;

    @TableField(exist = false)
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    private String assignName;

    @TableField(exist = false)
    String processName;
    @TableField(exist = false)
    private String shenpsj;

    @TableField(exist = false)
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    String shenqr;

    // 说明
    String shuom;

    // 下级审批人
    @TableField(exist = false)
    String xiajspr;

    // 需求单位负责人
    String xuqdwfzr;

    // 立项审批人
    String lixspr;

    // 财务审批人
    String caiwspr;

}
